package net.osweb.crm.modules.email.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Emailfilter entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "email_filter")
public class EmailFilter implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -8346697847963070641L;
	private Integer id;
	private Integer userid;
	private String filtername;
	private String filterkeywords;
	private String filtertype;
	private Integer isavailability;
	private String comment;

	// Constructors

	/** default constructor */
	public EmailFilter() {
	}

	/** full constructor */
	public EmailFilter(Integer userid, String filtername,
			String filterkeywords, String filtertype, Integer isavailability,
			String comment) {
		this.userid = userid;
		this.filtername = filtername;
		this.filterkeywords = filterkeywords;
		this.filtertype = filtertype;
		this.isavailability = isavailability;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "filtername", length = 127)
	public String getFiltername() {
		return this.filtername;
	}

	public void setFiltername(String filtername) {
		this.filtername = filtername;
	}

	@Column(name = "filterkeywords", length = 127)
	public String getFilterkeywords() {
		return this.filterkeywords;
	}

	public void setFilterkeywords(String filterkeywords) {
		this.filterkeywords = filterkeywords;
	}

	@Column(name = "filtertype", length = 127)
	public String getFiltertype() {
		return this.filtertype;
	}

	public void setFiltertype(String filtertype) {
		this.filtertype = filtertype;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}